package com.yuanlrc.hotel.RoomReserve.service;

import java.util.List;
import com.yuanlrc.hotel.RoomReserve.domain.RoomReserve;
import org.apache.ibatis.annotations.Param;

/**
 * 预约管理Service接口
 * 
 * @author yuanlrc
 * @date 2020-11-19
 */
public interface IRoomReserveService 
{
    /**
     * 查询预约管理
     * 
     * @param id 预约管理ID
     * @return 预约管理
     */
    public RoomReserve selectRoomReserveById(Long id);

    /**
     * 对查询出的预约记录进行处理
     * @param id
     * @return
     */
    public List<RoomReserve> selectAllRoomReserve(Long id);
    /**
     * 查询当前登录用户的预约记录
     * @param accountId
     * @return
     */
    public List<RoomReserve> selectRoomReserveByAccountId(Long accountId);

    /**
     * 查询预约管理列表
     * 
     * @param roomReserve 预约管理
     * @return 预约管理集合
     */
    public List<RoomReserve> selectRoomReserveList(RoomReserve roomReserve);

    /**
     * 新增预约管理
     * 
     * @param roomReserve 预约管理
     * @return 结果
     */
    public int insertRoomReserve(RoomReserve roomReserve);

    /**
     * 修改预约管理
     * 
     * @param roomReserve 预约管理
     * @return 结果
     */
    public int updateRoomReserve(RoomReserve roomReserve);

    /**
     * 批量删除预约管理
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteRoomReserveByIds(String ids);

    /**
     * 删除预约管理信息
     * 
     * @param id 预约管理ID
     * @return 结果
     */
    public int deleteRoomReserveById(Long id);


    public boolean isMakeStartDateTime(String startDateTime);

    public List<RoomReserve> selectDate(Integer accountId, Integer roomId, String datetime);


    public List<RoomReserve> selectRoomReserveListByRoomId(String start, Integer roomId);

    public int selectRoomReserveCount(Integer roomId, String start, String end);

    public RoomReserve selectStartSection(Integer roomId, String start);

    //找到用户选择的钟点房日期的是否是同一天
    public RoomReserve selectEqualStartDate(@Param("roomId")Integer roomId, @Param("start")String start);
}
